#include "CTaskThread.h"

namespace lampe{
namespace thread{

CTaskThread::CTaskThread(ITask t){
	task=t;
}

void CTaskThread::threadRunning(){
	task();
}

extern void runTask(ITask task){
	IThread*t=createThread(task);
	t->start();
	t->drop();
}

extern IThread*createThread(ITask task){
	return new CTaskThread(task);
}

}//namespace thread
}//namespace lampe